'It is recommended to test the script on a local machine for its purpose and effects. 'ManageEngine Desktop Central will not be responsible for any 'damage/loss to the data/setup based on the behavior of the script. 'Description - Queries TPM if it's enabled. 'Parameters - None 'Configuration Type - COMPUTER '============================================================== msg = "No" Set objWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2\security\microsofttpm") Set objItems = objWMI.InstancesOf("Win32_Tpm") for each objTPM in objItems ret = objTPM.IsEnabled(IsEnabled) if IsEnabled then msg = "Yes" end if next WScript.Echo msg